#define _CRT_SECURE_NO_WARNINGS
int removeElement(int* nums, int numsSize, int val) {
    int* des = nums;
    int* src = nums;
    while (src - nums != numsSize)
    {
        if (*src != val)
        {
            *des = *src;
            des++;
        }
        src++;
    }
    return des - nums;
}
